import request from '@/utils/request'

export function getTopCategoryAPI (id) {
  return request({
    url: '/category',
    params:{
      id
    }
  })
}
export function getCategoryFilterAPI (id) {
  return request({
    url: '/category/sub/filter',
    params:{
      id
    }
  })
}
export const getSubCategoryAPI = (data) => {
  return request({
    url:'/category/goods/temporary',
    method:'POST',
    data
  })
}